From d8d7c7c17133578d9c4e6aeda97d3b43750177e9 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 24 Nov 2011 21:01:16 +0100 Subject: [PATCH] Update background-area reftest for background-clip --- tests/reftests/background-area.css | 47 ++++++++++++++++++++--- tests/reftests/background-area.ref.ui | 54 +++++++++++++++++++++++---- tests/reftests/background-area.ui | 44 +++++++++++++++++++--- 3 files changed, 127 insertions(+), 18 deletions(-) diff --git a/tests/reftests/background-area.css b/tests/reftests/background-area.css index d6b4a09659..0cb009467a 100644 --- a/tests/reftests/background-area.css +++ b/tests/reftests/background-area.css @@ -1,23 +1,60 @@ * { engine: none; - border-radius: 0; border-style: none; border-image: none; background-image: none; + background-clip: border-box; + border-radius: 0; } GtkWindow { - background-color: green; + background-color: rgb(0,255,0); } GtkButton { - background-color: black; + border-width: 5; border-style: solid; border-color: rgba(255,0,0,0.6); - border-width: 4; + padding: 10; + background-color: rgb(0,0,255); + + /* Make sure children of button are only offset by padding */ + -GtkButton-default-border: 0; + -GtkButton-inner-border: 0; + -GtkWidget-focus-line-width: 0; + -GtkWidget-focus-padding: 0; +} + +#button1 { + background-clip: border-box; +} + +#button2 { + background-clip: padding-box; +} + +#button3 { + background-clip: content-box; +} + +#reference1 { + border-color: rgb(153,0,102); +} + +#reference2 { + border-color: rgb(153,102,0); } -#reference { +#reference3 { border-color: rgb(153,102,0); + background-color: none; + padding: 5; +} + +#reference3inner { + padding: 0; + border-width: 10; + border-color: rgb(0, 255, 0); + background-color: rgb(0,0,255); } diff --git a/tests/reftests/background-area.ref.ui b/tests/reftests/background-area.ref.ui index fe320d350b..b9b096c66e 100644 --- a/tests/reftests/background-area.ref.ui +++ b/tests/reftests/background-area.ref.ui @@ -5,14 +5,54 @@ False popup - - reference - Make sure that the background -area doesn't contain the border. + True - True - True - False + False + vertical + 5 + 5 + + + reference1 + True + True + True + False + 144 + 70 + + + + + reference2 + True + True + True + False + 144 + 70 + + + + + reference3 + True + True + True + False + 144 + 70 + + + reference3inner + True + True + True + False + + + + diff --git a/tests/reftests/background-area.ui b/tests/reftests/background-area.ui index dea4bae4fc..1fc44e847f 100644 --- a/tests/reftests/background-area.ui +++ b/tests/reftests/background-area.ui @@ -5,13 +5,45 @@ False popup - - Make sure that the background -area doesn't contain the border. + True - True - True - False + False + vertical + 5 + 5 + + + button1 + True + True + True + False + 144 + 70 + + + + + button2 + True + True + True + False + 144 + 70 + + + + + button3 + True + True + True + False + 144 + 70 + + -- 2.30.2